package photobox.account

/**
 * 通知领域类
 */
class Notice {
    String message
    Integer isRead
    Date readTime

    Date  dateCreated
    Date  lastUpdated

    static belongsTo = [user:User]
    static final int isRead_NO = 0     //不同意
    static final int isRead_YES = 1   //同意

    static mapping = {
        table 'acc_notice'
    }

    static constraints = {
        message  size: 0..200
        isRead  inList: [isRead_NO,isRead_YES]

    }
}
